package com.ganzalang.gmall.designpatterns.decorator;

/**
 * @description:
 * @author: Ganzalang
 * @Date 2022/4/11 14:48
 */
public class Decorator extends Component{

    private Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    /**
     * 抽象的方法
     */
    @Override
    public void operate() {
        this.component.operate();
    }
}
